﻿@model AuditWeb.Models.ExpertJudgeContactInfo

@{
    ViewBag.Title = "SetContactInfo";
    bool empty = string.IsNullOrEmpty(Model.ContactAddress) ? true : false;
}

<h2>
@if (empty)
{
    <text>您还没有设置通讯地址，请先</text>
}
设置并确认通讯地址
</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>通讯地址</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.ContactAddress)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ContactAddress)
            @Html.ValidationMessageFor(model => model.ContactAddress)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ZipCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ZipCode)
            @Html.ValidationMessageFor(model => model.ZipCode)
        </div>

        
    </fieldset>

<div>
<input type="submit" value="@AuditResources.UI.Save" /> | 
    @Html.ActionLink(AuditResources.UI.BackToList, "Index", null, new { @class = "button" })
</div>
}

